WT_DECLARE_WT_MEMBER(1,JavaScriptFunction,"animateDisplay",function(D,E,F,G,H){var j=this,C=function(x,m,q,o,n){var I=["ease","linear","ease-in","ease-out","ease-in-out"],J=[0,1,3,2,4,5],r=j.vendorPrefix(j.styleAttribute("animation")),s=j.vendorPrefix(j.styleAttribute("transition")),y=j.vendorPrefix(j.styleAttribute("transform")),f=$("#"+x),a=f.get(0),K=r=="Webkit"?"webkitAnimationEnd":"animationend",t=s=="Webkit"?"webkitTransitionEnd":"transitionend";if(f.css("display")!==n){var p=a.parentNode;if(p.wtAnimateChild)p.wtAnimateChild(j,
f.get(0),m,q,o,{display:n});else{function z(){d(a,{animationDuration:o+"ms"},h);e&&f.removeClass("in");var b;switch(l){case 5:b="pop";break;case 1:b=e?"slide":"slide reverse";break;case 2:b=e?"slide reverse":"slide";break}b+=e?" out":" in";if(m&256)b+=" fade";e||u();f.addClass(b);f.one(K,function(){e||(b=b.replace(" in",""));f.removeClass(b);if(e)a.style.display=n;d(a,h);v()})}function M(){A("width",l==1?"left":"right",l==1,"X")}function N(){A("height",l==4?"top":"bottom",l==4,"Y")}function A(b,i,
k,g){e||u();b=j.px(a,b);i=(j.px(a,i)+b)*(k?-1:1);var c;if(e){d(a,{transform:"translate"+g+"(0px)"},h);c=i}else{d(a,{transform:"translate"+g+"("+i+"px)"},h);c=0}if(m&256)d(a,{opacity:e?1:0},h);setTimeout(function(){d(a,{transition:"all "+o+"ms "+w,transform:"translate"+g+"("+c+"px)"},h);if(m&256)d(a,{opacity:e?0:1});f.one(t,function(){if(e)a.style.display=n;d(a,h);v()})},0)}function O(){var b,i,k={},g;if(e){i=f.height()+"px";d(a,{height:i,overflow:"hidden"},h);if(l==4&&a.childNodes.length==1){g=a.firstChild;
d(g,{transform:"translateY(0)"},k);j.hasTag(g,"TABLE")||d(g,{display:"block"},k)}b="0px"}else{var c=$(p),B={};d(p,{height:c.height()+"px",overflow:"hidden"},B);u();if(f.height()==0)a.style.height="auto";b=f.height()+"px";d(a,{height:"0px",overflow:"hidden"},h);d(p,B);if(l==4){d(a,{WebkitBackfaceVisibility:"visible"},h);a.scrollTop=1E3}}if(m&256)d(a,{opacity:e?1:0},h);i=a.clientHeight;setTimeout(function(){d(a,{transition:"all "+o+"ms "+w,height:b},h);if(m&256)d(a,{opacity:e?0:1});g&&d(g,{transition:"all "+
o+"ms "+w,transform:"translateY(-"+i+")"},k);f.one(t,function(){if(e)a.style.display=n;d(a,h);if(l==4){a.scrollTop=0;g&&d(g,k)}v()})},0)}function u(){a.style.display=n;a.wtPosition&&a.wtPosition();window.onshow&&window.onshow()}function v(){a.wtAnimatedHidden&&a.wtAnimatedHidden(e);f.removeClass("animating");Wt.layouts2&&Wt.layouts2.setElementDirty(a)}function d(b,i,k){var g;for(g in i){var c=g;if(c=="animationDuration"&&r!="")c=r+c.substring(0,1).toUpperCase()+c.substring(1);else if(c=="transform"&&
y!="")c=y+c.substring(0,1).toUpperCase()+c.substring(1);else if(c=="transition"&&s!="")c=s+c.substring(0,1).toUpperCase()+c.substring(1);if(k&&typeof k[c]==="undefined")k[c]=b.style[c];b.style[c]=i[g]}}if(f.hasClass("animating"))$(a).one(t,function(){C(x,m,q,o,n)});else{f.addClass("animating");var l=m&255,e=n==="none",w=I[e?J[q]:q],h={};setTimeout(function(){var b=f.css("position");b=b==="absolute"||b==="fixed";switch(l){case 4:case 3:b?N():O();break;case 1:case 2:b?M():z();break;case 0:case 5:z();
break}},0)}}}};C(D,E,F,G,H)});WT_DECLARE_WT_MEMBER(2,JavaScriptFunction,"animateVisible",function(){});
